package cn.cvs.service.impl;

import cn.cvs.dao.HandSetMapper;
import cn.cvs.pojo.HandSet;
import cn.cvs.service.HandSetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class HandSetServiceImpl implements HandSetService {
    @Autowired
    private HandSetMapper handSetMapper;
    @Override
    public List<HandSet> list() {
        return handSetMapper.list();
    }

    @Override
    public HandSet listById(Integer hsId) {
        return handSetMapper.listById(hsId);
    }

    @Override
    public int delete(Integer hsId) {
        int result = handSetMapper.delete(hsId);
        return result;
    }
}
